//
//  SockPacket.m
//  TcpTest_Server
//
//  Created by scarlettsun on 12-7-28.
//  Copyright (c) 2012年 tencent. All rights reserved.
//

#import "SockPacket.h"

@implementation SockPacket
@synthesize packetLen;
@synthesize packetContent;
@synthesize subAsynSocket;


-(void)dealloc
{
    self.subAsynSocket = nil;
    self.packetContent = nil;
}

- (SockPacket *) initSockPacket:(NSUInteger)_packLen packData:(NSData *)_packData sock:(GCDAsyncSocket * )_sock
{
    self.packetLen = _packLen;
    self.packetContent = [NSData dataWithData:_packData];
    self.subAsynSocket = _sock;
    return self;
}

@end

@implementation HeartBeat

@synthesize subAsynSocket;
@synthesize beatTime;
@synthesize userId;

@end